package com.example.sign

import com.chad.library.adapter.base.BaseMultiItemQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.base.entity.SignEntityItem

class SignMultiAdapter:BaseMultiItemQuickAdapter<SignEntityItem,BaseViewHolder>() {
    init {
        addItemType(0,R.layout.item_sign_left)
        addItemType(1,R.layout.item_sign_right)
    }
    override fun convert(helper: BaseViewHolder, item: SignEntityItem) {
        when(helper.itemViewType){
            0->{
                helper.setText(R.id.sign_time,item.morningCheckIn)
                helper.setText(R.id.sign_addr,item.location)
            }
            else->{
                helper.setText(R.id.sign_time,item.morningCheckIn)
                helper.setText(R.id.sign_addr,item.location)
            }
        }
    }
}